home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir34 / dsktest.zip / DT.BAT next >
DOS Batch File  |  1993-05-25  |  800b  |  44 lines

  1. @echo off
  2. If (%1)==() goto NOPARAM
  3. for %%A in ( c: C: d: D: e: E: f: F: g: G: ) do if %1==%%A goto NOPARAM
  4. dtest %1
  5. echo.
  6. call errlev.bat
  7.  
  8. if errorlevel 3 goto NODISK
  9. if errorlevel 2 goto UNFOR
  10. if errorlevel 1 goto FILES-OR-VOL
  11. if errorlevel 0 goto NOFILESNOVOL
  12.  
  13. :NODISK
  14. echo.
  15. echo there is no disk in %1
  16. echo.
  17. goto END
  18.  
  19. :UNFOR
  20. echo.
  21. echo the disk in %1 is unformatted
  22. echo.
  23. goto END
  24.  
  25. :FILES-OR-VOL
  26. echo.
  27. echo the disk in %1 is formatted and has files and/or a volume label
  28. echo.
  29. goto END
  30.  
  31. :NOFILESNOVOL
  32. echo.
  33. echo the disk in %1 is formatted and has neither a volume label nor files on it.
  34. echo.
  35. goto END
  36.  
  37. :NOPARAM
  38. echo.
  39. echo A floppy disk must be specified.  Use DT a: =or= DT b:
  40. echo ...or a hard disk drive was named. Specify only floppies.
  41. echo.
  42.  
  43. :END
  44.